package com.util;

import com.util.JDBCUtil;

import java.sql.ResultSet;
import java.sql.SQLException;

public class test01 {
    public static void main(String[] args) throws SQLException {
        String sql=" select * from user where username=? and password=?";
        ResultSet login = JDBCUtil.login(sql, "123456", "123456");
        if(login.next()){
            System.out.println("登录成功");
        }else{
            System.out.println("登陆失败");
        }
    }
}
